<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BookRuleFood extends Model
{
    public $timestamps = false;

    protected $fillable = [
        'rule_id',
        'food_id'
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function food()
    {
        return $this->hasOne(Food::class, 'id', 'food_id');
    }
}